from rest_framework import pagination


class BlocklyCodePagination(pagination.PageNumberPagination):
    """
        项目分页
    """
    page_size = 5
    page_size_query_param = 'page_size'


class BlocklyFunctionCodePagination(pagination.PageNumberPagination):
    """
        自定义代码块分页
    """
    page_size = 5
    page_size_query_param = 'page_size'


class GenerateTemplatePagination(pagination.PageNumberPagination):
    """
        模板分页
    """
    page_size = 5
    page_size_query_param = 'page_size'
